home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-26 | 628 b | 27 lines | [TEXT/ScoM] |
- RIGHT FUNCTION PARAMETER ORDER
-
- There is a also a general rule in the functions that the processed
- item should be the last one. This makes it easier to read nested
- operations that occur very often in SCOM. Consider how easy it is to
- read and modify this
-
- (dothis 1 2
- (dothat 3 4
- (domore 5 6
- (andsoon 7 8))))
-
- instead of
-
- (dothis 1
- (dothat
- (domore
- (andsoon 7 8)
- 5 6)
- 3
- 4)
- 2)
-
- There are some exceptions due historical reasons, but all new
- functions should follow this guideline. It's so much easier to
- read the first than the Lisp-like second example.
-